﻿-- =============================================
-- Author:		Andreas Könighofer (IT-eXperience)
-- Create date: 14.01.2009
-- Description:	Inserts new machine into resourcetable
-- =============================================
CREATE PROCEDURE [dbo].[CreateMachine]
	-- Add the parameters for the stored procedure here
	@LocationID SMALLINT,
	@RessourceName NVARCHAR(100),
	@MachineTypeID SMALLINT,
	@Status NVARCHAR(50),
	@SerialNo NVARCHAR(50)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

   DECLARE @ReturnValue INT
   EXECUTE @ReturnValue = [BigDays2009].[dbo].[CreateResource] 
   @LocationID
  ,@RessourceName
  , NULL
  , @MachineTypeID
  , @Status
  , @SerialNo
  
  RETURN @ReturnValue
END

---- end script CreateMachine stored procedure ----

---- start script CreateMachineType stored procedure ----

